package qldc.pm.tiensu.service.base;

import com.liferay.portal.kernel.bean.BeanReference;
import com.liferay.portal.kernel.bean.IdentifiableBean;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
import com.liferay.portal.kernel.dao.orm.Projection;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.search.Indexable;
import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.model.PersistedModel;
import com.liferay.portal.service.BaseLocalServiceImpl;
import com.liferay.portal.service.PersistedModelLocalServiceRegistryUtil;
import com.liferay.portal.service.persistence.UserPersistence;

import qldc.pm.tiensu.model.TienSu;
import qldc.pm.tiensu.service.TienSuLocalService;
import qldc.pm.tiensu.service.persistence.BienBanBanGiaoHoSoPersistence;
import qldc.pm.tiensu.service.persistence.CongViecBanGiaoPersistence;
import qldc.pm.tiensu.service.persistence.DoiTuongTienSuFinder;
import qldc.pm.tiensu.service.persistence.DoiTuongTienSuPersistence;
import qldc.pm.tiensu.service.persistence.KetQuaTrichLucFinder;
import qldc.pm.tiensu.service.persistence.KetQuaTrichLucPersistence;
import qldc.pm.tiensu.service.persistence.LichSuXoaAnTichFinder;
import qldc.pm.tiensu.service.persistence.LichSuXoaAnTichPersistence;
import qldc.pm.tiensu.service.persistence.PhieuThongTinVeNguoiCoTienSuPersistence;
import qldc.pm.tiensu.service.persistence.TEMP_DoiTuongTienSuPersistence;
import qldc.pm.tiensu.service.persistence.TEMP_PhieuThongTinVeNguoiCoTienSuPersistence;
import qldc.pm.tiensu.service.persistence.TEMP_TienSuPersistence;
import qldc.pm.tiensu.service.persistence.TangThuPersistence;
import qldc.pm.tiensu.service.persistence.TienSuFinder;
import qldc.pm.tiensu.service.persistence.TienSuPersistence;
import qldc.pm.tiensu.service.persistence.YeuCauTrichLucFinder;
import qldc.pm.tiensu.service.persistence.YeuCauTrichLucPersistence;

import java.io.Serializable;

import java.util.List;

import javax.sql.DataSource;

/**
 * Provides the base implementation for the tien su local service.
 *
 * <p>
 * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link qldc.pm.tiensu.service.impl.TienSuLocalServiceImpl}.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see qldc.pm.tiensu.service.impl.TienSuLocalServiceImpl
 * @see qldc.pm.tiensu.service.TienSuLocalServiceUtil
 * @generated
 */
public abstract class TienSuLocalServiceBaseImpl extends BaseLocalServiceImpl
    implements TienSuLocalService, IdentifiableBean {
    @BeanReference(type = qldc.pm.tiensu.service.BienBanBanGiaoHoSoLocalService.class)
    protected qldc.pm.tiensu.service.BienBanBanGiaoHoSoLocalService bienBanBanGiaoHoSoLocalService;
    @BeanReference(type = BienBanBanGiaoHoSoPersistence.class)
    protected BienBanBanGiaoHoSoPersistence bienBanBanGiaoHoSoPersistence;
    @BeanReference(type = qldc.pm.tiensu.service.CongViecBanGiaoLocalService.class)
    protected qldc.pm.tiensu.service.CongViecBanGiaoLocalService congViecBanGiaoLocalService;
    @BeanReference(type = CongViecBanGiaoPersistence.class)
    protected CongViecBanGiaoPersistence congViecBanGiaoPersistence;
    @BeanReference(type = qldc.pm.tiensu.service.DoiTuongTienSuLocalService.class)
    protected qldc.pm.tiensu.service.DoiTuongTienSuLocalService doiTuongTienSuLocalService;
    @BeanReference(type = DoiTuongTienSuPersistence.class)
    protected DoiTuongTienSuPersistence doiTuongTienSuPersistence;
    @BeanReference(type = DoiTuongTienSuFinder.class)
    protected DoiTuongTienSuFinder doiTuongTienSuFinder;
    @BeanReference(type = qldc.pm.tiensu.service.KetQuaTrichLucLocalService.class)
    protected qldc.pm.tiensu.service.KetQuaTrichLucLocalService ketQuaTrichLucLocalService;
    @BeanReference(type = KetQuaTrichLucPersistence.class)
    protected KetQuaTrichLucPersistence ketQuaTrichLucPersistence;
    @BeanReference(type = KetQuaTrichLucFinder.class)
    protected KetQuaTrichLucFinder ketQuaTrichLucFinder;
    @BeanReference(type = qldc.pm.tiensu.service.LichSuXoaAnTichLocalService.class)
    protected qldc.pm.tiensu.service.LichSuXoaAnTichLocalService lichSuXoaAnTichLocalService;
    @BeanReference(type = LichSuXoaAnTichPersistence.class)
    protected LichSuXoaAnTichPersistence lichSuXoaAnTichPersistence;
    @BeanReference(type = LichSuXoaAnTichFinder.class)
    protected LichSuXoaAnTichFinder lichSuXoaAnTichFinder;
    @BeanReference(type = qldc.pm.tiensu.service.PhieuThongTinVeNguoiCoTienSuLocalService.class)
    protected qldc.pm.tiensu.service.PhieuThongTinVeNguoiCoTienSuLocalService phieuThongTinVeNguoiCoTienSuLocalService;
    @BeanReference(type = PhieuThongTinVeNguoiCoTienSuPersistence.class)
    protected PhieuThongTinVeNguoiCoTienSuPersistence phieuThongTinVeNguoiCoTienSuPersistence;
    @BeanReference(type = qldc.pm.tiensu.service.PhucHoiTienSuLocalService.class)
    protected qldc.pm.tiensu.service.PhucHoiTienSuLocalService phucHoiTienSuLocalService;
    @BeanReference(type = qldc.pm.tiensu.service.SaoLuuTienSuLocalService.class)
    protected qldc.pm.tiensu.service.SaoLuuTienSuLocalService saoLuuTienSuLocalService;
    @BeanReference(type = qldc.pm.tiensu.service.TangThuLocalService.class)
    protected qldc.pm.tiensu.service.TangThuLocalService tangThuLocalService;
    @BeanReference(type = TangThuPersistence.class)
    protected TangThuPersistence tangThuPersistence;
    @BeanReference(type = qldc.pm.tiensu.service.TEMP_DoiTuongTienSuLocalService.class)
    protected qldc.pm.tiensu.service.TEMP_DoiTuongTienSuLocalService temp_DoiTuongTienSuLocalService;
    @BeanReference(type = TEMP_DoiTuongTienSuPersistence.class)
    protected TEMP_DoiTuongTienSuPersistence temp_DoiTuongTienSuPersistence;
    @BeanReference(type = qldc.pm.tiensu.service.TEMP_PhieuThongTinVeNguoiCoTienSuLocalService.class)
    protected qldc.pm.tiensu.service.TEMP_PhieuThongTinVeNguoiCoTienSuLocalService temp_PhieuThongTinVeNguoiCoTienSuLocalService;
    @BeanReference(type = TEMP_PhieuThongTinVeNguoiCoTienSuPersistence.class)
    protected TEMP_PhieuThongTinVeNguoiCoTienSuPersistence temp_PhieuThongTinVeNguoiCoTienSuPersistence;
    @BeanReference(type = qldc.pm.tiensu.service.TEMP_TienSuLocalService.class)
    protected qldc.pm.tiensu.service.TEMP_TienSuLocalService temp_TienSuLocalService;
    @BeanReference(type = TEMP_TienSuPersistence.class)
    protected TEMP_TienSuPersistence temp_TienSuPersistence;
    @BeanReference(type = qldc.pm.tiensu.service.TienSuLocalService.class)
    protected qldc.pm.tiensu.service.TienSuLocalService tienSuLocalService;
    @BeanReference(type = TienSuPersistence.class)
    protected TienSuPersistence tienSuPersistence;
    @BeanReference(type = TienSuFinder.class)
    protected TienSuFinder tienSuFinder;
    @BeanReference(type = qldc.pm.tiensu.service.YeuCauTrichLucLocalService.class)
    protected qldc.pm.tiensu.service.YeuCauTrichLucLocalService yeuCauTrichLucLocalService;
    @BeanReference(type = YeuCauTrichLucPersistence.class)
    protected YeuCauTrichLucPersistence yeuCauTrichLucPersistence;
    @BeanReference(type = YeuCauTrichLucFinder.class)
    protected YeuCauTrichLucFinder yeuCauTrichLucFinder;
    @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
    protected com.liferay.counter.service.CounterLocalService counterLocalService;
    @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
    protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
    @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
    protected com.liferay.portal.service.UserLocalService userLocalService;
    @BeanReference(type = com.liferay.portal.service.UserService.class)
    protected com.liferay.portal.service.UserService userService;
    @BeanReference(type = UserPersistence.class)
    protected UserPersistence userPersistence;
    private String _beanIdentifier;
    private ClassLoader _classLoader;
    private TienSuLocalServiceClpInvoker _clpInvoker = new TienSuLocalServiceClpInvoker();

    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. Always use {@link qldc.pm.tiensu.service.TienSuLocalServiceUtil} to access the tien su local service.
     */

    /**
     * Adds the tien su to the database. Also notifies the appropriate model listeners.
     *
     * @param tienSu the tien su
     * @return the tien su that was added
     * @throws SystemException if a system exception occurred
     */
    @Indexable(type = IndexableType.REINDEX)
    @Override
    public TienSu addTienSu(TienSu tienSu) throws SystemException {
        tienSu.setNew(true);

        return tienSuPersistence.update(tienSu);
    }

    /**
     * Creates a new tien su with the primary key. Does not add the tien su to the database.
     *
     * @param tienSuId the primary key for the new tien su
     * @return the new tien su
     */
    @Override
    public TienSu createTienSu(long tienSuId) {
        return tienSuPersistence.create(tienSuId);
    }

    /**
     * Deletes the tien su with the primary key from the database. Also notifies the appropriate model listeners.
     *
     * @param tienSuId the primary key of the tien su
     * @return the tien su that was removed
     * @throws PortalException if a tien su with the primary key could not be found
     * @throws SystemException if a system exception occurred
     */
    @Indexable(type = IndexableType.DELETE)
    @Override
    public TienSu deleteTienSu(long tienSuId)
        throws PortalException, SystemException {
        return tienSuPersistence.remove(tienSuId);
    }

    /**
     * Deletes the tien su from the database. Also notifies the appropriate model listeners.
     *
     * @param tienSu the tien su
     * @return the tien su that was removed
     * @throws SystemException if a system exception occurred
     */
    @Indexable(type = IndexableType.DELETE)
    @Override
    public TienSu deleteTienSu(TienSu tienSu) throws SystemException {
        return tienSuPersistence.remove(tienSu);
    }

    @Override
    public DynamicQuery dynamicQuery() {
        Class<?> clazz = getClass();

        return DynamicQueryFactoryUtil.forClass(TienSu.class,
            clazz.getClassLoader());
    }

    /**
     * Performs a dynamic query on the database and returns the matching rows.
     *
     * @param dynamicQuery the dynamic query
     * @return the matching rows
     * @throws SystemException if a system exception occurred
     */
    @Override
    @SuppressWarnings("rawtypes")
    public List dynamicQuery(DynamicQuery dynamicQuery)
        throws SystemException {
        return tienSuPersistence.findWithDynamicQuery(dynamicQuery);
    }

    /**
     * Performs a dynamic query on the database and returns a range of the matching rows.
     *
     * <p>
     * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tiensu.model.impl.TienSuModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
     * </p>
     *
     * @param dynamicQuery the dynamic query
     * @param start the lower bound of the range of model instances
     * @param end the upper bound of the range of model instances (not inclusive)
     * @return the range of matching rows
     * @throws SystemException if a system exception occurred
     */
    @Override
    @SuppressWarnings("rawtypes")
    public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
        throws SystemException {
        return tienSuPersistence.findWithDynamicQuery(dynamicQuery, start, end);
    }

    /**
     * Performs a dynamic query on the database and returns an ordered range of the matching rows.
     *
     * <p>
     * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tiensu.model.impl.TienSuModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
     * </p>
     *
     * @param dynamicQuery the dynamic query
     * @param start the lower bound of the range of model instances
     * @param end the upper bound of the range of model instances (not inclusive)
     * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
     * @return the ordered range of matching rows
     * @throws SystemException if a system exception occurred
     */
    @Override
    @SuppressWarnings("rawtypes")
    public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
        OrderByComparator orderByComparator) throws SystemException {
        return tienSuPersistence.findWithDynamicQuery(dynamicQuery, start, end,
            orderByComparator);
    }

    /**
     * Returns the number of rows that match the dynamic query.
     *
     * @param dynamicQuery the dynamic query
     * @return the number of rows that match the dynamic query
     * @throws SystemException if a system exception occurred
     */
    @Override
    public long dynamicQueryCount(DynamicQuery dynamicQuery)
        throws SystemException {
        return tienSuPersistence.countWithDynamicQuery(dynamicQuery);
    }

    /**
     * Returns the number of rows that match the dynamic query.
     *
     * @param dynamicQuery the dynamic query
     * @param projection the projection to apply to the query
     * @return the number of rows that match the dynamic query
     * @throws SystemException if a system exception occurred
     */
    @Override
    public long dynamicQueryCount(DynamicQuery dynamicQuery,
        Projection projection) throws SystemException {
        return tienSuPersistence.countWithDynamicQuery(dynamicQuery, projection);
    }

    @Override
    public TienSu fetchTienSu(long tienSuId) throws SystemException {
        return tienSuPersistence.fetchByPrimaryKey(tienSuId);
    }

    /**
     * Returns the tien su with the primary key.
     *
     * @param tienSuId the primary key of the tien su
     * @return the tien su
     * @throws PortalException if a tien su with the primary key could not be found
     * @throws SystemException if a system exception occurred
     */
    @Override
    public TienSu getTienSu(long tienSuId)
        throws PortalException, SystemException {
        return tienSuPersistence.findByPrimaryKey(tienSuId);
    }

    @Override
    public PersistedModel getPersistedModel(Serializable primaryKeyObj)
        throws PortalException, SystemException {
        return tienSuPersistence.findByPrimaryKey(primaryKeyObj);
    }

    /**
     * Returns a range of all the tien sus.
     *
     * <p>
     * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tiensu.model.impl.TienSuModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
     * </p>
     *
     * @param start the lower bound of the range of tien sus
     * @param end the upper bound of the range of tien sus (not inclusive)
     * @return the range of tien sus
     * @throws SystemException if a system exception occurred
     */
    @Override
    public List<TienSu> getTienSus(int start, int end)
        throws SystemException {
        return tienSuPersistence.findAll(start, end);
    }

    /**
     * Returns the number of tien sus.
     *
     * @return the number of tien sus
     * @throws SystemException if a system exception occurred
     */
    @Override
    public int getTienSusCount() throws SystemException {
        return tienSuPersistence.countAll();
    }

    /**
     * Updates the tien su in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
     *
     * @param tienSu the tien su
     * @return the tien su that was updated
     * @throws SystemException if a system exception occurred
     */
    @Indexable(type = IndexableType.REINDEX)
    @Override
    public TienSu updateTienSu(TienSu tienSu) throws SystemException {
        return tienSuPersistence.update(tienSu);
    }

    /**
     * Returns the bien ban ban giao ho so local service.
     *
     * @return the bien ban ban giao ho so local service
     */
    public qldc.pm.tiensu.service.BienBanBanGiaoHoSoLocalService getBienBanBanGiaoHoSoLocalService() {
        return bienBanBanGiaoHoSoLocalService;
    }

    /**
     * Sets the bien ban ban giao ho so local service.
     *
     * @param bienBanBanGiaoHoSoLocalService the bien ban ban giao ho so local service
     */
    public void setBienBanBanGiaoHoSoLocalService(
        qldc.pm.tiensu.service.BienBanBanGiaoHoSoLocalService bienBanBanGiaoHoSoLocalService) {
        this.bienBanBanGiaoHoSoLocalService = bienBanBanGiaoHoSoLocalService;
    }

    /**
     * Returns the bien ban ban giao ho so persistence.
     *
     * @return the bien ban ban giao ho so persistence
     */
    public BienBanBanGiaoHoSoPersistence getBienBanBanGiaoHoSoPersistence() {
        return bienBanBanGiaoHoSoPersistence;
    }

    /**
     * Sets the bien ban ban giao ho so persistence.
     *
     * @param bienBanBanGiaoHoSoPersistence the bien ban ban giao ho so persistence
     */
    public void setBienBanBanGiaoHoSoPersistence(
        BienBanBanGiaoHoSoPersistence bienBanBanGiaoHoSoPersistence) {
        this.bienBanBanGiaoHoSoPersistence = bienBanBanGiaoHoSoPersistence;
    }

    /**
     * Returns the cong viec ban giao local service.
     *
     * @return the cong viec ban giao local service
     */
    public qldc.pm.tiensu.service.CongViecBanGiaoLocalService getCongViecBanGiaoLocalService() {
        return congViecBanGiaoLocalService;
    }

    /**
     * Sets the cong viec ban giao local service.
     *
     * @param congViecBanGiaoLocalService the cong viec ban giao local service
     */
    public void setCongViecBanGiaoLocalService(
        qldc.pm.tiensu.service.CongViecBanGiaoLocalService congViecBanGiaoLocalService) {
        this.congViecBanGiaoLocalService = congViecBanGiaoLocalService;
    }

    /**
     * Returns the cong viec ban giao persistence.
     *
     * @return the cong viec ban giao persistence
     */
    public CongViecBanGiaoPersistence getCongViecBanGiaoPersistence() {
        return congViecBanGiaoPersistence;
    }

    /**
     * Sets the cong viec ban giao persistence.
     *
     * @param congViecBanGiaoPersistence the cong viec ban giao persistence
     */
    public void setCongViecBanGiaoPersistence(
        CongViecBanGiaoPersistence congViecBanGiaoPersistence) {
        this.congViecBanGiaoPersistence = congViecBanGiaoPersistence;
    }

    /**
     * Returns the doi tuong tien su local service.
     *
     * @return the doi tuong tien su local service
     */
    public qldc.pm.tiensu.service.DoiTuongTienSuLocalService getDoiTuongTienSuLocalService() {
        return doiTuongTienSuLocalService;
    }

    /**
     * Sets the doi tuong tien su local service.
     *
     * @param doiTuongTienSuLocalService the doi tuong tien su local service
     */
    public void setDoiTuongTienSuLocalService(
        qldc.pm.tiensu.service.DoiTuongTienSuLocalService doiTuongTienSuLocalService) {
        this.doiTuongTienSuLocalService = doiTuongTienSuLocalService;
    }

    /**
     * Returns the doi tuong tien su persistence.
     *
     * @return the doi tuong tien su persistence
     */
    public DoiTuongTienSuPersistence getDoiTuongTienSuPersistence() {
        return doiTuongTienSuPersistence;
    }

    /**
     * Sets the doi tuong tien su persistence.
     *
     * @param doiTuongTienSuPersistence the doi tuong tien su persistence
     */
    public void setDoiTuongTienSuPersistence(
        DoiTuongTienSuPersistence doiTuongTienSuPersistence) {
        this.doiTuongTienSuPersistence = doiTuongTienSuPersistence;
    }

    /**
     * Returns the doi tuong tien su finder.
     *
     * @return the doi tuong tien su finder
     */
    public DoiTuongTienSuFinder getDoiTuongTienSuFinder() {
        return doiTuongTienSuFinder;
    }

    /**
     * Sets the doi tuong tien su finder.
     *
     * @param doiTuongTienSuFinder the doi tuong tien su finder
     */
    public void setDoiTuongTienSuFinder(
        DoiTuongTienSuFinder doiTuongTienSuFinder) {
        this.doiTuongTienSuFinder = doiTuongTienSuFinder;
    }

    /**
     * Returns the ket qua trich luc local service.
     *
     * @return the ket qua trich luc local service
     */
    public qldc.pm.tiensu.service.KetQuaTrichLucLocalService getKetQuaTrichLucLocalService() {
        return ketQuaTrichLucLocalService;
    }

    /**
     * Sets the ket qua trich luc local service.
     *
     * @param ketQuaTrichLucLocalService the ket qua trich luc local service
     */
    public void setKetQuaTrichLucLocalService(
        qldc.pm.tiensu.service.KetQuaTrichLucLocalService ketQuaTrichLucLocalService) {
        this.ketQuaTrichLucLocalService = ketQuaTrichLucLocalService;
    }

    /**
     * Returns the ket qua trich luc persistence.
     *
     * @return the ket qua trich luc persistence
     */
    public KetQuaTrichLucPersistence getKetQuaTrichLucPersistence() {
        return ketQuaTrichLucPersistence;
    }

    /**
     * Sets the ket qua trich luc persistence.
     *
     * @param ketQuaTrichLucPersistence the ket qua trich luc persistence
     */
    public void setKetQuaTrichLucPersistence(
        KetQuaTrichLucPersistence ketQuaTrichLucPersistence) {
        this.ketQuaTrichLucPersistence = ketQuaTrichLucPersistence;
    }

    /**
     * Returns the ket qua trich luc finder.
     *
     * @return the ket qua trich luc finder
     */
    public KetQuaTrichLucFinder getKetQuaTrichLucFinder() {
        return ketQuaTrichLucFinder;
    }

    /**
     * Sets the ket qua trich luc finder.
     *
     * @param ketQuaTrichLucFinder the ket qua trich luc finder
     */
    public void setKetQuaTrichLucFinder(
        KetQuaTrichLucFinder ketQuaTrichLucFinder) {
        this.ketQuaTrichLucFinder = ketQuaTrichLucFinder;
    }

    /**
     * Returns the lich su xoa an tich local service.
     *
     * @return the lich su xoa an tich local service
     */
    public qldc.pm.tiensu.service.LichSuXoaAnTichLocalService getLichSuXoaAnTichLocalService() {
        return lichSuXoaAnTichLocalService;
    }

    /**
     * Sets the lich su xoa an tich local service.
     *
     * @param lichSuXoaAnTichLocalService the lich su xoa an tich local service
     */
    public void setLichSuXoaAnTichLocalService(
        qldc.pm.tiensu.service.LichSuXoaAnTichLocalService lichSuXoaAnTichLocalService) {
        this.lichSuXoaAnTichLocalService = lichSuXoaAnTichLocalService;
    }

    /**
     * Returns the lich su xoa an tich persistence.
     *
     * @return the lich su xoa an tich persistence
     */
    public LichSuXoaAnTichPersistence getLichSuXoaAnTichPersistence() {
        return lichSuXoaAnTichPersistence;
    }

    /**
     * Sets the lich su xoa an tich persistence.
     *
     * @param lichSuXoaAnTichPersistence the lich su xoa an tich persistence
     */
    public void setLichSuXoaAnTichPersistence(
        LichSuXoaAnTichPersistence lichSuXoaAnTichPersistence) {
        this.lichSuXoaAnTichPersistence = lichSuXoaAnTichPersistence;
    }

    /**
     * Returns the lich su xoa an tich finder.
     *
     * @return the lich su xoa an tich finder
     */
    public LichSuXoaAnTichFinder getLichSuXoaAnTichFinder() {
        return lichSuXoaAnTichFinder;
    }

    /**
     * Sets the lich su xoa an tich finder.
     *
     * @param lichSuXoaAnTichFinder the lich su xoa an tich finder
     */
    public void setLichSuXoaAnTichFinder(
        LichSuXoaAnTichFinder lichSuXoaAnTichFinder) {
        this.lichSuXoaAnTichFinder = lichSuXoaAnTichFinder;
    }

    /**
     * Returns the phieu thong tin ve nguoi co tien su local service.
     *
     * @return the phieu thong tin ve nguoi co tien su local service
     */
    public qldc.pm.tiensu.service.PhieuThongTinVeNguoiCoTienSuLocalService getPhieuThongTinVeNguoiCoTienSuLocalService() {
        return phieuThongTinVeNguoiCoTienSuLocalService;
    }

    /**
     * Sets the phieu thong tin ve nguoi co tien su local service.
     *
     * @param phieuThongTinVeNguoiCoTienSuLocalService the phieu thong tin ve nguoi co tien su local service
     */
    public void setPhieuThongTinVeNguoiCoTienSuLocalService(
        qldc.pm.tiensu.service.PhieuThongTinVeNguoiCoTienSuLocalService phieuThongTinVeNguoiCoTienSuLocalService) {
        this.phieuThongTinVeNguoiCoTienSuLocalService = phieuThongTinVeNguoiCoTienSuLocalService;
    }

    /**
     * Returns the phieu thong tin ve nguoi co tien su persistence.
     *
     * @return the phieu thong tin ve nguoi co tien su persistence
     */
    public PhieuThongTinVeNguoiCoTienSuPersistence getPhieuThongTinVeNguoiCoTienSuPersistence() {
        return phieuThongTinVeNguoiCoTienSuPersistence;
    }

    /**
     * Sets the phieu thong tin ve nguoi co tien su persistence.
     *
     * @param phieuThongTinVeNguoiCoTienSuPersistence the phieu thong tin ve nguoi co tien su persistence
     */
    public void setPhieuThongTinVeNguoiCoTienSuPersistence(
        PhieuThongTinVeNguoiCoTienSuPersistence phieuThongTinVeNguoiCoTienSuPersistence) {
        this.phieuThongTinVeNguoiCoTienSuPersistence = phieuThongTinVeNguoiCoTienSuPersistence;
    }

    /**
     * Returns the phuc hoi tien su local service.
     *
     * @return the phuc hoi tien su local service
     */
    public qldc.pm.tiensu.service.PhucHoiTienSuLocalService getPhucHoiTienSuLocalService() {
        return phucHoiTienSuLocalService;
    }

    /**
     * Sets the phuc hoi tien su local service.
     *
     * @param phucHoiTienSuLocalService the phuc hoi tien su local service
     */
    public void setPhucHoiTienSuLocalService(
        qldc.pm.tiensu.service.PhucHoiTienSuLocalService phucHoiTienSuLocalService) {
        this.phucHoiTienSuLocalService = phucHoiTienSuLocalService;
    }

    /**
     * Returns the sao luu tien su local service.
     *
     * @return the sao luu tien su local service
     */
    public qldc.pm.tiensu.service.SaoLuuTienSuLocalService getSaoLuuTienSuLocalService() {
        return saoLuuTienSuLocalService;
    }

    /**
     * Sets the sao luu tien su local service.
     *
     * @param saoLuuTienSuLocalService the sao luu tien su local service
     */
    public void setSaoLuuTienSuLocalService(
        qldc.pm.tiensu.service.SaoLuuTienSuLocalService saoLuuTienSuLocalService) {
        this.saoLuuTienSuLocalService = saoLuuTienSuLocalService;
    }

    /**
     * Returns the tang thu local service.
     *
     * @return the tang thu local service
     */
    public qldc.pm.tiensu.service.TangThuLocalService getTangThuLocalService() {
        return tangThuLocalService;
    }

    /**
     * Sets the tang thu local service.
     *
     * @param tangThuLocalService the tang thu local service
     */
    public void setTangThuLocalService(
        qldc.pm.tiensu.service.TangThuLocalService tangThuLocalService) {
        this.tangThuLocalService = tangThuLocalService;
    }

    /**
     * Returns the tang thu persistence.
     *
     * @return the tang thu persistence
     */
    public TangThuPersistence getTangThuPersistence() {
        return tangThuPersistence;
    }

    /**
     * Sets the tang thu persistence.
     *
     * @param tangThuPersistence the tang thu persistence
     */
    public void setTangThuPersistence(TangThuPersistence tangThuPersistence) {
        this.tangThuPersistence = tangThuPersistence;
    }

    /**
     * Returns the t e m p_ doi tuong tien su local service.
     *
     * @return the t e m p_ doi tuong tien su local service
     */
    public qldc.pm.tiensu.service.TEMP_DoiTuongTienSuLocalService getTEMP_DoiTuongTienSuLocalService() {
        return temp_DoiTuongTienSuLocalService;
    }

    /**
     * Sets the t e m p_ doi tuong tien su local service.
     *
     * @param temp_DoiTuongTienSuLocalService the t e m p_ doi tuong tien su local service
     */
    public void setTEMP_DoiTuongTienSuLocalService(
        qldc.pm.tiensu.service.TEMP_DoiTuongTienSuLocalService temp_DoiTuongTienSuLocalService) {
        this.temp_DoiTuongTienSuLocalService = temp_DoiTuongTienSuLocalService;
    }

    /**
     * Returns the t e m p_ doi tuong tien su persistence.
     *
     * @return the t e m p_ doi tuong tien su persistence
     */
    public TEMP_DoiTuongTienSuPersistence getTEMP_DoiTuongTienSuPersistence() {
        return temp_DoiTuongTienSuPersistence;
    }

    /**
     * Sets the t e m p_ doi tuong tien su persistence.
     *
     * @param temp_DoiTuongTienSuPersistence the t e m p_ doi tuong tien su persistence
     */
    public void setTEMP_DoiTuongTienSuPersistence(
        TEMP_DoiTuongTienSuPersistence temp_DoiTuongTienSuPersistence) {
        this.temp_DoiTuongTienSuPersistence = temp_DoiTuongTienSuPersistence;
    }

    /**
     * Returns the t e m p_ phieu thong tin ve nguoi co tien su local service.
     *
     * @return the t e m p_ phieu thong tin ve nguoi co tien su local service
     */
    public qldc.pm.tiensu.service.TEMP_PhieuThongTinVeNguoiCoTienSuLocalService getTEMP_PhieuThongTinVeNguoiCoTienSuLocalService() {
        return temp_PhieuThongTinVeNguoiCoTienSuLocalService;
    }

    /**
     * Sets the t e m p_ phieu thong tin ve nguoi co tien su local service.
     *
     * @param temp_PhieuThongTinVeNguoiCoTienSuLocalService the t e m p_ phieu thong tin ve nguoi co tien su local service
     */
    public void setTEMP_PhieuThongTinVeNguoiCoTienSuLocalService(
        qldc.pm.tiensu.service.TEMP_PhieuThongTinVeNguoiCoTienSuLocalService temp_PhieuThongTinVeNguoiCoTienSuLocalService) {
        this.temp_PhieuThongTinVeNguoiCoTienSuLocalService = temp_PhieuThongTinVeNguoiCoTienSuLocalService;
    }

    /**
     * Returns the t e m p_ phieu thong tin ve nguoi co tien su persistence.
     *
     * @return the t e m p_ phieu thong tin ve nguoi co tien su persistence
     */
    public TEMP_PhieuThongTinVeNguoiCoTienSuPersistence getTEMP_PhieuThongTinVeNguoiCoTienSuPersistence() {
        return temp_PhieuThongTinVeNguoiCoTienSuPersistence;
    }

    /**
     * Sets the t e m p_ phieu thong tin ve nguoi co tien su persistence.
     *
     * @param temp_PhieuThongTinVeNguoiCoTienSuPersistence the t e m p_ phieu thong tin ve nguoi co tien su persistence
     */
    public void setTEMP_PhieuThongTinVeNguoiCoTienSuPersistence(
        TEMP_PhieuThongTinVeNguoiCoTienSuPersistence temp_PhieuThongTinVeNguoiCoTienSuPersistence) {
        this.temp_PhieuThongTinVeNguoiCoTienSuPersistence = temp_PhieuThongTinVeNguoiCoTienSuPersistence;
    }

    /**
     * Returns the t e m p_ tien su local service.
     *
     * @return the t e m p_ tien su local service
     */
    public qldc.pm.tiensu.service.TEMP_TienSuLocalService getTEMP_TienSuLocalService() {
        return temp_TienSuLocalService;
    }

    /**
     * Sets the t e m p_ tien su local service.
     *
     * @param temp_TienSuLocalService the t e m p_ tien su local service
     */
    public void setTEMP_TienSuLocalService(
        qldc.pm.tiensu.service.TEMP_TienSuLocalService temp_TienSuLocalService) {
        this.temp_TienSuLocalService = temp_TienSuLocalService;
    }

    /**
     * Returns the t e m p_ tien su persistence.
     *
     * @return the t e m p_ tien su persistence
     */
    public TEMP_TienSuPersistence getTEMP_TienSuPersistence() {
        return temp_TienSuPersistence;
    }

    /**
     * Sets the t e m p_ tien su persistence.
     *
     * @param temp_TienSuPersistence the t e m p_ tien su persistence
     */
    public void setTEMP_TienSuPersistence(
        TEMP_TienSuPersistence temp_TienSuPersistence) {
        this.temp_TienSuPersistence = temp_TienSuPersistence;
    }

    /**
     * Returns the tien su local service.
     *
     * @return the tien su local service
     */
    public qldc.pm.tiensu.service.TienSuLocalService getTienSuLocalService() {
        return tienSuLocalService;
    }

    /**
     * Sets the tien su local service.
     *
     * @param tienSuLocalService the tien su local service
     */
    public void setTienSuLocalService(
        qldc.pm.tiensu.service.TienSuLocalService tienSuLocalService) {
        this.tienSuLocalService = tienSuLocalService;
    }

    /**
     * Returns the tien su persistence.
     *
     * @return the tien su persistence
     */
    public TienSuPersistence getTienSuPersistence() {
        return tienSuPersistence;
    }

    /**
     * Sets the tien su persistence.
     *
     * @param tienSuPersistence the tien su persistence
     */
    public void setTienSuPersistence(TienSuPersistence tienSuPersistence) {
        this.tienSuPersistence = tienSuPersistence;
    }

    /**
     * Returns the tien su finder.
     *
     * @return the tien su finder
     */
    public TienSuFinder getTienSuFinder() {
        return tienSuFinder;
    }

    /**
     * Sets the tien su finder.
     *
     * @param tienSuFinder the tien su finder
     */
    public void setTienSuFinder(TienSuFinder tienSuFinder) {
        this.tienSuFinder = tienSuFinder;
    }

    /**
     * Returns the yeu cau trich luc local service.
     *
     * @return the yeu cau trich luc local service
     */
    public qldc.pm.tiensu.service.YeuCauTrichLucLocalService getYeuCauTrichLucLocalService() {
        return yeuCauTrichLucLocalService;
    }

    /**
     * Sets the yeu cau trich luc local service.
     *
     * @param yeuCauTrichLucLocalService the yeu cau trich luc local service
     */
    public void setYeuCauTrichLucLocalService(
        qldc.pm.tiensu.service.YeuCauTrichLucLocalService yeuCauTrichLucLocalService) {
        this.yeuCauTrichLucLocalService = yeuCauTrichLucLocalService;
    }

    /**
     * Returns the yeu cau trich luc persistence.
     *
     * @return the yeu cau trich luc persistence
     */
    public YeuCauTrichLucPersistence getYeuCauTrichLucPersistence() {
        return yeuCauTrichLucPersistence;
    }

    /**
     * Sets the yeu cau trich luc persistence.
     *
     * @param yeuCauTrichLucPersistence the yeu cau trich luc persistence
     */
    public void setYeuCauTrichLucPersistence(
        YeuCauTrichLucPersistence yeuCauTrichLucPersistence) {
        this.yeuCauTrichLucPersistence = yeuCauTrichLucPersistence;
    }

    /**
     * Returns the yeu cau trich luc finder.
     *
     * @return the yeu cau trich luc finder
     */
    public YeuCauTrichLucFinder getYeuCauTrichLucFinder() {
        return yeuCauTrichLucFinder;
    }

    /**
     * Sets the yeu cau trich luc finder.
     *
     * @param yeuCauTrichLucFinder the yeu cau trich luc finder
     */
    public void setYeuCauTrichLucFinder(
        YeuCauTrichLucFinder yeuCauTrichLucFinder) {
        this.yeuCauTrichLucFinder = yeuCauTrichLucFinder;
    }

    /**
     * Returns the counter local service.
     *
     * @return the counter local service
     */
    public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
        return counterLocalService;
    }

    /**
     * Sets the counter local service.
     *
     * @param counterLocalService the counter local service
     */
    public void setCounterLocalService(
        com.liferay.counter.service.CounterLocalService counterLocalService) {
        this.counterLocalService = counterLocalService;
    }

    /**
     * Returns the resource local service.
     *
     * @return the resource local service
     */
    public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
        return resourceLocalService;
    }

    /**
     * Sets the resource local service.
     *
     * @param resourceLocalService the resource local service
     */
    public void setResourceLocalService(
        com.liferay.portal.service.ResourceLocalService resourceLocalService) {
        this.resourceLocalService = resourceLocalService;
    }

    /**
     * Returns the user local service.
     *
     * @return the user local service
     */
    public com.liferay.portal.service.UserLocalService getUserLocalService() {
        return userLocalService;
    }

    /**
     * Sets the user local service.
     *
     * @param userLocalService the user local service
     */
    public void setUserLocalService(
        com.liferay.portal.service.UserLocalService userLocalService) {
        this.userLocalService = userLocalService;
    }

    /**
     * Returns the user remote service.
     *
     * @return the user remote service
     */
    public com.liferay.portal.service.UserService getUserService() {
        return userService;
    }

    /**
     * Sets the user remote service.
     *
     * @param userService the user remote service
     */
    public void setUserService(
        com.liferay.portal.service.UserService userService) {
        this.userService = userService;
    }

    /**
     * Returns the user persistence.
     *
     * @return the user persistence
     */
    public UserPersistence getUserPersistence() {
        return userPersistence;
    }

    /**
     * Sets the user persistence.
     *
     * @param userPersistence the user persistence
     */
    public void setUserPersistence(UserPersistence userPersistence) {
        this.userPersistence = userPersistence;
    }

    public void afterPropertiesSet() {
        Class<?> clazz = getClass();

        _classLoader = clazz.getClassLoader();

        PersistedModelLocalServiceRegistryUtil.register("qldc.pm.tiensu.model.TienSu",
            tienSuLocalService);
    }

    public void destroy() {
        PersistedModelLocalServiceRegistryUtil.unregister(
            "qldc.pm.tiensu.model.TienSu");
    }

    /**
     * Returns the Spring bean ID for this bean.
     *
     * @return the Spring bean ID for this bean
     */
    @Override
    public String getBeanIdentifier() {
        return _beanIdentifier;
    }

    /**
     * Sets the Spring bean ID for this bean.
     *
     * @param beanIdentifier the Spring bean ID for this bean
     */
    @Override
    public void setBeanIdentifier(String beanIdentifier) {
        _beanIdentifier = beanIdentifier;
    }

    @Override
    public Object invokeMethod(String name, String[] parameterTypes,
        Object[] arguments) throws Throwable {
        Thread currentThread = Thread.currentThread();

        ClassLoader contextClassLoader = currentThread.getContextClassLoader();

        if (contextClassLoader != _classLoader) {
            currentThread.setContextClassLoader(_classLoader);
        }

        try {
            return _clpInvoker.invokeMethod(name, parameterTypes, arguments);
        } finally {
            if (contextClassLoader != _classLoader) {
                currentThread.setContextClassLoader(contextClassLoader);
            }
        }
    }

    protected Class<?> getModelClass() {
        return TienSu.class;
    }

    protected String getModelClassName() {
        return TienSu.class.getName();
    }

    /**
     * Performs an SQL query.
     *
     * @param sql the sql query
     */
    protected void runSQL(String sql) throws SystemException {
        try {
            DataSource dataSource = tienSuPersistence.getDataSource();

            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
                    sql, new int[0]);

            sqlUpdate.update();
        } catch (Exception e) {
            throw new SystemException(e);
        }
    }
}
